.class public Lcn/cheln/support/v4/view/PagerView;
.super Landroid/view/ViewGroup;


# static fields
.field private static final a:Ljava/util/Comparator;

.field private static final b:Landroid/view/animation/Interpolator;


# instance fields
.field private A:F

.field private B:Lcn/cheln/support/v4/a/a;

.field private C:Lcn/cheln/support/v4/a/a;

.field private D:Z

.field private E:Lcn/cheln/support/v4/view/k;

.field private F:I

.field private final c:Ljava/util/ArrayList;

.field private d:Lcn/cheln/support/v4/view/g;

.field private e:I

.field private f:I

.field private g:Landroid/os/Parcelable;

.field private h:Ljava/lang/ClassLoader;

.field private i:Landroid/widget/Scroller;

.field private j:Lcn/cheln/support/v4/view/h;

.field private k:I

.field private l:I

.field private m:Z

.field private n:Z

.field private o:Z

.field private p:Z

.field private q:I

.field private r:Z

.field private s:Z

.field private t:I

.field private u:F

.field private v:F

.field private w:I

.field private x:Landroid/view/VelocityTracker;

.field private y:I

.field private z:F


# direct methods
.method static constructor <clinit>()V
    .locals 1

    new-instance v0, Lcn/cheln/support/v4/view/i;

    invoke-direct {v0}, Lcn/cheln/support/v4/view/i;-><init>()V

    sput-object v0, Lcn/cheln/support/v4/view/PagerView;->a:Ljava/util/Comparator;

    new-instance v0, Lcn/cheln/support/v4/view/PagerView$2;

    invoke-direct {v0}, Lcn/cheln/support/v4/view/PagerView$2;-><init>()V

    sput-object v0, Lcn/cheln/support/v4/view/PagerView;->b:Landroid/view/animation/Interpolator;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 4

    const/4 v3, 0x0

    const/4 v2, 0x1

    const/4 v1, -0x1

    invoke-direct {p0, p1}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    iput v1, p0, Lcn/cheln/support/v4/view/PagerView;->f:I

    iput-object v3, p0, Lcn/cheln/support/v4/view/PagerView;->g:Landroid/os/Parcelable;

    iput-object v3, p0, Lcn/cheln/support/v4/view/PagerView;->h:Ljava/lang/ClassLoader;

    iput v2, p0, Lcn/cheln/support/v4/view/PagerView;->q:I

    iput v1, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    iput-boolean v2, p0, Lcn/cheln/support/v4/view/PagerView;->D:Z

    const/4 v0, 0x0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->F:I

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->b()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 4

    const/4 v3, 0x0

    const/4 v2, 0x1

    const/4 v1, -0x1

    invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    iput v1, p0, Lcn/cheln/support/v4/view/PagerView;->f:I

    iput-object v3, p0, Lcn/cheln/support/v4/view/PagerView;->g:Landroid/os/Parcelable;

    iput-object v3, p0, Lcn/cheln/support/v4/view/PagerView;->h:Ljava/lang/ClassLoader;

    iput v2, p0, Lcn/cheln/support/v4/view/PagerView;->q:I

    iput v1, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    iput-boolean v2, p0, Lcn/cheln/support/v4/view/PagerView;->D:Z

    const/4 v0, 0x0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->F:I

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->b()V

    return-void
.end method

.method private a(Landroid/view/View;)Lcn/cheln/support/v4/view/j;
    .locals 4

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/v4/view/j;

    iget-object v2, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    iget-object v3, v0, Lcn/cheln/support/v4/view/j;->a:Ljava/lang/Object;

    invoke-virtual {v2, p1, v3}, Lcn/cheln/support/v4/view/g;->a(Landroid/view/View;Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    :goto_1
    return-object v0

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_1
.end method

.method private a(II)V
    .locals 2

    new-instance v0, Lcn/cheln/support/v4/view/j;

    invoke-direct {v0}, Lcn/cheln/support/v4/view/j;-><init>()V

    iput p1, v0, Lcn/cheln/support/v4/view/j;->b:I

    iget-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {v1, p0, p1}, Lcn/cheln/support/v4/view/g;->b(Landroid/view/View;I)Ljava/lang/Object;

    move-result-object v1

    iput-object v1, v0, Lcn/cheln/support/v4/view/j;->a:Ljava/lang/Object;

    if-gez p2, :cond_0

    iget-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_0
    return-void

    :cond_0
    iget-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v1, p2, v0}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    goto :goto_0
.end method

.method private a(IZZ)V
    .locals 10

    const/4 v8, 0x1

    const/4 v5, 0x0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {v0}, Lcn/cheln/support/v4/view/g;->a()I

    move-result v0

    if-gtz v0, :cond_2

    :cond_0
    invoke-direct {p0, v5}, Lcn/cheln/support/v4/view/PagerView;->a(Z)V

    :cond_1
    :goto_0
    return-void

    :cond_2
    if-nez p3, :cond_3

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    if-ne v0, p1, :cond_3

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-eqz v0, :cond_3

    invoke-direct {p0, v5}, Lcn/cheln/support/v4/view/PagerView;->a(Z)V

    goto :goto_0

    :cond_3
    if-gez p1, :cond_5

    move v6, v5

    :goto_1
    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->q:I

    iget v1, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    add-int/2addr v1, v0

    if-gt v6, v1, :cond_4

    iget v1, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    sub-int v0, v1, v0

    if-ge v6, v0, :cond_6

    :cond_4
    move v1, v5

    :goto_2
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_6

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/v4/view/j;

    iput-boolean v8, v0, Lcn/cheln/support/v4/view/j;->c:Z

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_2

    :cond_5
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {v0}, Lcn/cheln/support/v4/view/g;->a()I

    move-result v0

    if-lt p1, v0, :cond_d

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {v0}, Lcn/cheln/support/v4/view/g;->a()I

    move-result v0

    sub-int/2addr v0, v8

    move v6, v0

    goto :goto_1

    :cond_6
    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    if-eq v0, v6, :cond_7

    move v7, v8

    :goto_3
    iput v6, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->c()V

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getWidth()I

    move-result v0

    mul-int/2addr v0, v6

    if-eqz p2, :cond_b

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getChildCount()I

    move-result v1

    if-nez v1, :cond_8

    invoke-direct {p0, v5}, Lcn/cheln/support/v4/view/PagerView;->a(Z)V

    :goto_4
    if-eqz v7, :cond_1

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->E:Lcn/cheln/support/v4/view/k;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->E:Lcn/cheln/support/v4/view/k;

    invoke-interface {v0, v6}, Lcn/cheln/support/v4/view/k;->c(I)V

    goto :goto_0

    :cond_7
    move v7, v5

    goto :goto_3

    :cond_8
    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollX()I

    move-result v1

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollY()I

    move-result v2

    sub-int v3, v0, v1

    sub-int v4, v5, v2

    if-nez v3, :cond_9

    if-nez v4, :cond_9

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->d()V

    invoke-direct {p0, v5}, Lcn/cheln/support/v4/view/PagerView;->b(I)V

    goto :goto_4

    :cond_9
    invoke-direct {p0, v8}, Lcn/cheln/support/v4/view/PagerView;->a(Z)V

    iput-boolean v8, p0, Lcn/cheln/support/v4/view/PagerView;->p:Z

    const/4 v0, 0x2

    invoke-direct {p0, v0}, Lcn/cheln/support/v4/view/PagerView;->b(I)V

    invoke-static {v3}, Ljava/lang/Math;->abs(I)I

    move-result v0

    int-to-float v0, v0

    const/high16 v5, 0x42c8

    mul-float/2addr v0, v5

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getWidth()I

    move-result v5

    int-to-float v5, v5

    div-float/2addr v0, v5

    float-to-int v0, v0

    const/16 v5, 0x15e

    invoke-static {v5}, Ljava/lang/Math;->abs(I)I

    move-result v5

    if-lez v5, :cond_a

    int-to-float v8, v0

    int-to-float v0, v0

    int-to-float v5, v5

    iget v9, p0, Lcn/cheln/support/v4/view/PagerView;->z:F

    div-float/2addr v5, v9

    div-float/2addr v0, v5

    iget v5, p0, Lcn/cheln/support/v4/view/PagerView;->A:F

    mul-float/2addr v0, v5

    add-float/2addr v0, v8

    float-to-int v0, v0

    :goto_5
    const/16 v5, 0x320

    invoke-static {v0, v5}, Ljava/lang/Math;->min(II)I

    move-result v5

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-virtual/range {v0 .. v5}, Landroid/widget/Scroller;->startScroll(IIIII)V

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->invalidate()V

    goto :goto_4

    :cond_a
    add-int/lit8 v0, v0, 0x64

    goto :goto_5

    :cond_b
    if-eqz v7, :cond_c

    iget-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->E:Lcn/cheln/support/v4/view/k;

    if-eqz v1, :cond_c

    iget-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->E:Lcn/cheln/support/v4/view/k;

    invoke-interface {v1, v6}, Lcn/cheln/support/v4/view/k;->c(I)V

    :cond_c
    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->d()V

    invoke-virtual {p0, v0, v5}, Lcn/cheln/support/v4/view/PagerView;->scrollTo(II)V

    goto/16 :goto_0

    :cond_d
    move v6, p1

    goto/16 :goto_1
.end method

.method private a(Landroid/view/MotionEvent;)V
    .locals 3

    invoke-static {p1}, Lcn/cheln/support/v4/view/c;->a(Landroid/view/MotionEvent;)I

    move-result v0

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->b(Landroid/view/MotionEvent;I)I

    move-result v1

    iget v2, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    if-ne v1, v2, :cond_0

    if-nez v0, :cond_1

    const/4 v0, 0x1

    :goto_0
    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->c(Landroid/view/MotionEvent;I)F

    move-result v1

    iput v1, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->b(Landroid/view/MotionEvent;I)I

    move-result v0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->x:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->x:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->clear()V

    :cond_0
    return-void

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private a(Z)V
    .locals 1

    iget-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->n:Z

    if-eq v0, p1, :cond_0

    iput-boolean p1, p0, Lcn/cheln/support/v4/view/PagerView;->n:Z

    :cond_0
    return-void
.end method

.method private a(Landroid/view/View;ZIII)Z
    .locals 11

    const/4 v3, 0x1

    instance-of v1, p1, Landroid/view/ViewGroup;

    if-eqz v1, :cond_1

    move-object v0, p1

    check-cast v0, Landroid/view/ViewGroup;

    move-object v7, v0

    invoke-virtual {p1}, Landroid/view/View;->getScrollX()I

    move-result v8

    invoke-virtual {p1}, Landroid/view/View;->getScrollY()I

    move-result v9

    invoke-virtual {v7}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v1

    sub-int/2addr v1, v3

    move v10, v1

    :goto_0
    if-ltz v10, :cond_1

    invoke-virtual {v7, v10}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    add-int v1, p4, v8

    invoke-virtual {v2}, Landroid/view/View;->getLeft()I

    move-result v4

    if-lt v1, v4, :cond_0

    add-int v1, p4, v8

    invoke-virtual {v2}, Landroid/view/View;->getRight()I

    move-result v4

    if-ge v1, v4, :cond_0

    add-int v1, p5, v9

    invoke-virtual {v2}, Landroid/view/View;->getTop()I

    move-result v4

    if-lt v1, v4, :cond_0

    add-int v1, p5, v9

    invoke-virtual {v2}, Landroid/view/View;->getBottom()I

    move-result v4

    if-ge v1, v4, :cond_0

    add-int v1, p4, v8

    invoke-virtual {v2}, Landroid/view/View;->getLeft()I

    move-result v4

    sub-int v5, v1, v4

    add-int v1, p5, v9

    invoke-virtual {v2}, Landroid/view/View;->getTop()I

    move-result v4

    sub-int v6, v1, v4

    move-object v1, p0

    move v4, p3

    invoke-direct/range {v1 .. v6}, Lcn/cheln/support/v4/view/PagerView;->a(Landroid/view/View;ZIII)Z

    move-result v1

    if-eqz v1, :cond_0

    move v1, v3

    :goto_1
    return v1

    :cond_0
    add-int/lit8 v1, v10, -0x1

    move v10, v1

    goto :goto_0

    :cond_1
    if-eqz p2, :cond_2

    invoke-static {}, Lcn/cheln/support/v4/view/q;->a()Z

    :cond_2
    const/4 v1, 0x0

    goto :goto_1
.end method

.method private b()V
    .locals 3

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcn/cheln/support/v4/view/PagerView;->setWillNotDraw(Z)V

    const/high16 v0, 0x4

    invoke-virtual {p0, v0}, Lcn/cheln/support/v4/view/PagerView;->setDescendantFocusability(I)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcn/cheln/support/v4/view/PagerView;->setFocusable(Z)V

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getContext()Landroid/content/Context;

    move-result-object v0

    new-instance v1, Landroid/widget/Scroller;

    sget-object v2, Lcn/cheln/support/v4/view/PagerView;->b:Landroid/view/animation/Interpolator;

    invoke-direct {v1, v0, v2}, Landroid/widget/Scroller;-><init>(Landroid/content/Context;Landroid/view/animation/Interpolator;)V

    iput-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-static {v0}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v1

    invoke-static {v1}, Lcn/cheln/support/v4/view/s;->a(Landroid/view/ViewConfiguration;)I

    move-result v2

    iput v2, p0, Lcn/cheln/support/v4/view/PagerView;->t:I

    invoke-virtual {v1}, Landroid/view/ViewConfiguration;->getScaledMinimumFlingVelocity()I

    invoke-virtual {v1}, Landroid/view/ViewConfiguration;->getScaledMaximumFlingVelocity()I

    move-result v1

    iput v1, p0, Lcn/cheln/support/v4/view/PagerView;->y:I

    new-instance v1, Lcn/cheln/support/v4/a/a;

    invoke-direct {v1}, Lcn/cheln/support/v4/a/a;-><init>()V

    iput-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->B:Lcn/cheln/support/v4/a/a;

    new-instance v1, Lcn/cheln/support/v4/a/a;

    invoke-direct {v1}, Lcn/cheln/support/v4/a/a;-><init>()V

    iput-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->C:Lcn/cheln/support/v4/a/a;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->density:F

    const v1, 0x451c4000

    mul-float/2addr v0, v1

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->z:F

    const v0, 0x3ecccccd

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->A:F

    return-void
.end method

.method private b(I)V
    .locals 1

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->F:I

    if-ne v0, p1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iput p1, p0, Lcn/cheln/support/v4/view/PagerView;->F:I

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->E:Lcn/cheln/support/v4/view/k;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->E:Lcn/cheln/support/v4/view/k;

    invoke-interface {v0, p1}, Lcn/cheln/support/v4/view/k;->a(I)V

    goto :goto_0
.end method

.method private c()V
    .locals 11

    const/4 v10, 0x1

    const/4 v9, 0x0

    const/4 v8, -0x1

    const/4 v7, 0x0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    if-nez v0, :cond_1

    :cond_0
    return-void

    :cond_1
    iget-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->o:Z

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getWindowToken()Landroid/os/IBinder;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->q:I

    iget v1, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    sub-int/2addr v1, v0

    invoke-static {v7, v1}, Ljava/lang/Math;->max(II)I

    move-result v1

    iget-object v2, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {v2}, Lcn/cheln/support/v4/view/g;->a()I

    move-result v2

    sub-int/2addr v2, v10

    iget v3, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    add-int/2addr v0, v3

    invoke-static {v2, v0}, Ljava/lang/Math;->min(II)I

    move-result v2

    move v3, v7

    move v4, v8

    :goto_0
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v3, v0, :cond_6

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/v4/view/j;

    iget v5, v0, Lcn/cheln/support/v4/view/j;->b:I

    if-lt v5, v1, :cond_2

    iget v5, v0, Lcn/cheln/support/v4/view/j;->b:I

    if-le v5, v2, :cond_4

    :cond_2
    iget-boolean v5, v0, Lcn/cheln/support/v4/view/j;->c:Z

    if-nez v5, :cond_4

    iget-object v4, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    add-int/lit8 v3, v3, -0x1

    iget-object v4, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    iget v5, v0, Lcn/cheln/support/v4/view/j;->b:I

    iget-object v6, v0, Lcn/cheln/support/v4/view/j;->a:Ljava/lang/Object;

    invoke-virtual {v4, p0, v5}, Lcn/cheln/support/v4/view/g;->a(Landroid/view/View;I)V

    :cond_3
    iget v0, v0, Lcn/cheln/support/v4/view/j;->b:I

    add-int/lit8 v3, v3, 0x1

    move v4, v0

    goto :goto_0

    :cond_4
    if-ge v4, v2, :cond_3

    iget v5, v0, Lcn/cheln/support/v4/view/j;->b:I

    if-le v5, v1, :cond_3

    add-int/lit8 v4, v4, 0x1

    if-ge v4, v1, :cond_5

    move v4, v1

    :cond_5
    :goto_1
    if-gt v4, v2, :cond_3

    iget v5, v0, Lcn/cheln/support/v4/view/j;->b:I

    if-ge v4, v5, :cond_3

    invoke-direct {p0, v4, v3}, Lcn/cheln/support/v4/view/PagerView;->a(II)V

    add-int/lit8 v4, v4, 0x1

    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :cond_6
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_7

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    iget-object v3, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    sub-int/2addr v3, v10

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/v4/view/j;

    iget v0, v0, Lcn/cheln/support/v4/view/j;->b:I

    :goto_2
    if-ge v0, v2, :cond_9

    add-int/lit8 v0, v0, 0x1

    if-le v0, v1, :cond_8

    :goto_3
    if-gt v0, v2, :cond_9

    invoke-direct {p0, v0, v8}, Lcn/cheln/support/v4/view/PagerView;->a(II)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_3

    :cond_7
    move v0, v8

    goto :goto_2

    :cond_8
    move v0, v1

    goto :goto_3

    :cond_9
    move v1, v7

    :goto_4
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_12

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/v4/view/j;

    iget v0, v0, Lcn/cheln/support/v4/view/j;->b:I

    iget v2, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    if-ne v0, v2, :cond_e

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/v4/view/j;

    :goto_5
    iget-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    iget v1, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    if-eqz v0, :cond_a

    iget-object v0, v0, Lcn/cheln/support/v4/view/j;->a:Ljava/lang/Object;

    :cond_a
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->hasFocus()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->findFocus()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_11

    move-object v1, v0

    :goto_6
    invoke-virtual {v1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eq v0, p0, :cond_10

    if-eqz v0, :cond_b

    instance-of v1, v0, Landroid/view/View;

    if-nez v1, :cond_f

    :cond_b
    move-object v0, v9

    :goto_7
    if-eqz v0, :cond_c

    iget v0, v0, Lcn/cheln/support/v4/view/j;->b:I

    iget v1, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    if-eq v0, v1, :cond_0

    :cond_c
    move v0, v7

    :goto_8
    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getChildCount()I

    move-result v1

    if-ge v0, v1, :cond_0

    invoke-virtual {p0, v0}, Lcn/cheln/support/v4/view/PagerView;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-direct {p0, v1}, Lcn/cheln/support/v4/view/PagerView;->a(Landroid/view/View;)Lcn/cheln/support/v4/view/j;

    move-result-object v2

    if-eqz v2, :cond_d

    iget v2, v2, Lcn/cheln/support/v4/view/j;->b:I

    iget v3, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    if-ne v2, v3, :cond_d

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Landroid/view/View;->requestFocus(I)Z

    move-result v1

    if-nez v1, :cond_0

    :cond_d
    add-int/lit8 v0, v0, 0x1

    goto :goto_8

    :cond_e
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_4

    :cond_f
    check-cast v0, Landroid/view/View;

    move-object v1, v0

    goto :goto_6

    :cond_10
    invoke-direct {p0, v1}, Lcn/cheln/support/v4/view/PagerView;->a(Landroid/view/View;)Lcn/cheln/support/v4/view/j;

    move-result-object v0

    goto :goto_7

    :cond_11
    move-object v0, v9

    goto :goto_7

    :cond_12
    move-object v0, v9

    goto :goto_5
.end method

.method private c(I)V
    .locals 2

    const/4 v1, 0x0

    iput-boolean v1, p0, Lcn/cheln/support/v4/view/PagerView;->o:Z

    const/4 v0, 0x1

    invoke-direct {p0, p1, v0, v1}, Lcn/cheln/support/v4/view/PagerView;->a(IZZ)V

    return-void
.end method

.method private d()V
    .locals 6

    const/4 v5, 0x0

    iget-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->p:Z

    if-eqz v0, :cond_2

    invoke-direct {p0, v5}, Lcn/cheln/support/v4/view/PagerView;->a(Z)V

    iget-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-virtual {v1}, Landroid/widget/Scroller;->abortAnimation()V

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollX()I

    move-result v1

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollY()I

    move-result v2

    iget-object v3, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-virtual {v3}, Landroid/widget/Scroller;->getCurrX()I

    move-result v3

    iget-object v4, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-virtual {v4}, Landroid/widget/Scroller;->getCurrY()I

    move-result v4

    if-ne v1, v3, :cond_0

    if-eq v2, v4, :cond_1

    :cond_0
    invoke-virtual {p0, v3, v4}, Lcn/cheln/support/v4/view/PagerView;->scrollTo(II)V

    :cond_1
    invoke-direct {p0, v5}, Lcn/cheln/support/v4/view/PagerView;->b(I)V

    :cond_2
    iput-boolean v5, p0, Lcn/cheln/support/v4/view/PagerView;->o:Z

    iput-boolean v5, p0, Lcn/cheln/support/v4/view/PagerView;->p:Z

    move v1, v5

    move v2, v0

    :goto_0
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_4

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/v4/view/j;

    iget-boolean v3, v0, Lcn/cheln/support/v4/view/j;->c:Z

    if-eqz v3, :cond_3

    const/4 v2, 0x1

    iput-boolean v5, v0, Lcn/cheln/support/v4/view/j;->c:Z

    :cond_3
    move v0, v2

    add-int/lit8 v1, v1, 0x1

    move v2, v0

    goto :goto_0

    :cond_4
    if-eqz v2, :cond_5

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->c()V

    :cond_5
    return-void
.end method

.method private d(I)Z
    .locals 6

    const/16 v5, 0x42

    const/16 v2, 0x11

    const/4 v4, 0x0

    const/4 v3, 0x1

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->findFocus()Landroid/view/View;

    move-result-object v0

    if-ne v0, p0, :cond_0

    const/4 v0, 0x0

    :cond_0
    invoke-static {}, Landroid/view/FocusFinder;->getInstance()Landroid/view/FocusFinder;

    move-result-object v1

    invoke-virtual {v1, p0, v0, p1}, Landroid/view/FocusFinder;->findNextFocus(Landroid/view/ViewGroup;Landroid/view/View;I)Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_5

    if-eq v1, v0, :cond_5

    if-ne p1, v2, :cond_3

    if-eqz v0, :cond_2

    invoke-virtual {v1}, Landroid/view/View;->getLeft()I

    move-result v2

    invoke-virtual {v0}, Landroid/view/View;->getLeft()I

    move-result v0

    if-lt v2, v0, :cond_2

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->f()Z

    move-result v0

    :goto_0
    if-eqz v0, :cond_1

    invoke-static {p1}, Landroid/view/SoundEffectConstants;->getContantForFocusDirection(I)I

    move-result v1

    invoke-virtual {p0, v1}, Lcn/cheln/support/v4/view/PagerView;->playSoundEffect(I)V

    :cond_1
    return v0

    :cond_2
    invoke-virtual {v1}, Landroid/view/View;->requestFocus()Z

    move-result v0

    goto :goto_0

    :cond_3
    if-ne p1, v5, :cond_a

    if-eqz v0, :cond_4

    invoke-virtual {v1}, Landroid/view/View;->getLeft()I

    move-result v2

    invoke-virtual {v0}, Landroid/view/View;->getLeft()I

    move-result v0

    if-le v2, v0, :cond_8

    :cond_4
    invoke-virtual {v1}, Landroid/view/View;->requestFocus()Z

    move-result v0

    goto :goto_0

    :cond_5
    if-eq p1, v2, :cond_6

    if-ne p1, v3, :cond_7

    :cond_6
    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->f()Z

    move-result v0

    goto :goto_0

    :cond_7
    if-eq p1, v5, :cond_8

    const/4 v0, 0x2

    if-ne p1, v0, :cond_a

    :cond_8
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    if-eqz v0, :cond_9

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    iget-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {v1}, Lcn/cheln/support/v4/view/g;->a()I

    move-result v1

    sub-int/2addr v1, v3

    if-ge v0, v1, :cond_9

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    add-int/lit8 v0, v0, 0x1

    invoke-direct {p0, v0}, Lcn/cheln/support/v4/view/PagerView;->c(I)V

    move v0, v3

    goto :goto_0

    :cond_9
    move v0, v4

    goto :goto_0

    :cond_a
    move v0, v4

    goto :goto_0
.end method

.method private e()V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    iput-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->s:Z

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->x:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->x:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->recycle()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->x:Landroid/view/VelocityTracker;

    :cond_0
    return-void
.end method

.method private f()Z
    .locals 2

    const/4 v1, 0x1

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    if-lez v0, :cond_0

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    sub-int/2addr v0, v1

    invoke-direct {p0, v0}, Lcn/cheln/support/v4/view/PagerView;->c(I)V

    move v0, v1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method final a()V
    .locals 4

    const/4 v2, 0x0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v1, 0x3

    if-ge v0, v1, :cond_0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    iget-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {v1}, Lcn/cheln/support/v4/view/g;->a()I

    move-result v1

    if-ge v0, v1, :cond_0

    const/4 v0, 0x1

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v2, v0, :cond_1

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/v4/view/j;

    iget-object v3, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    iget-object v0, v0, Lcn/cheln/support/v4/view/j;->a:Ljava/lang/Object;

    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    :cond_0
    move v1, v2

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    sget-object v2, Lcn/cheln/support/v4/view/PagerView;->a:Ljava/util/Comparator;

    invoke-static {v0, v2}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    if-eqz v1, :cond_2

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->c()V

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->requestLayout()V

    :cond_2
    return-void
.end method

.method public final a(I)V
    .locals 2

    const/4 v1, 0x0

    iput-boolean v1, p0, Lcn/cheln/support/v4/view/PagerView;->o:Z

    iget-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->D:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    invoke-direct {p0, p1, v0, v1}, Lcn/cheln/support/v4/view/PagerView;->a(IZZ)V

    return-void

    :cond_0
    move v0, v1

    goto :goto_0
.end method

.method public final a(Lcn/cheln/support/v4/view/g;)V
    .locals 6

    const/4 v5, 0x0

    const/4 v4, 0x0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {v0, v5}, Lcn/cheln/support/v4/view/g;->a(Lcn/cheln/support/v4/view/h;)V

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    move v1, v4

    :goto_0
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/v4/view/j;

    iget-object v2, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    iget v3, v0, Lcn/cheln/support/v4/view/j;->b:I

    iget-object v0, v0, Lcn/cheln/support/v4/view/j;->a:Ljava/lang/Object;

    invoke-virtual {v2, p0, v3}, Lcn/cheln/support/v4/view/g;->a(Landroid/view/View;I)V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->removeAllViews()V

    iput v4, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    invoke-virtual {p0, v4, v4}, Lcn/cheln/support/v4/view/PagerView;->scrollTo(II)V

    :cond_1
    iput-object p1, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->j:Lcn/cheln/support/v4/view/h;

    if-nez v0, :cond_2

    new-instance v0, Lcn/cheln/support/v4/view/h;

    invoke-direct {v0, p0, v4}, Lcn/cheln/support/v4/view/h;-><init>(Lcn/cheln/support/v4/view/PagerView;B)V

    iput-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->j:Lcn/cheln/support/v4/view/h;

    :cond_2
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    iget-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->j:Lcn/cheln/support/v4/view/h;

    invoke-virtual {v0, v1}, Lcn/cheln/support/v4/view/g;->a(Lcn/cheln/support/v4/view/h;)V

    iput-boolean v4, p0, Lcn/cheln/support/v4/view/PagerView;->o:Z

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->f:I

    if-ltz v0, :cond_4

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->g:Landroid/os/Parcelable;

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->h:Ljava/lang/ClassLoader;

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->f:I

    const/4 v1, 0x1

    invoke-direct {p0, v0, v4, v1}, Lcn/cheln/support/v4/view/PagerView;->a(IZZ)V

    const/4 v0, -0x1

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->f:I

    iput-object v5, p0, Lcn/cheln/support/v4/view/PagerView;->g:Landroid/os/Parcelable;

    iput-object v5, p0, Lcn/cheln/support/v4/view/PagerView;->h:Ljava/lang/ClassLoader;

    :cond_3
    :goto_1
    return-void

    :cond_4
    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->c()V

    goto :goto_1
.end method

.method public final a(Lcn/cheln/support/v4/view/k;)V
    .locals 0

    iput-object p1, p0, Lcn/cheln/support/v4/view/PagerView;->E:Lcn/cheln/support/v4/view/k;

    return-void
.end method

.method public addFocusables(Ljava/util/ArrayList;II)V
    .locals 6

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v0

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getDescendantFocusability()I

    move-result v1

    const/high16 v2, 0x6

    if-eq v1, v2, :cond_1

    const/4 v2, 0x0

    :goto_0
    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getChildCount()I

    move-result v3

    if-ge v2, v3, :cond_1

    invoke-virtual {p0, v2}, Lcn/cheln/support/v4/view/PagerView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getVisibility()I

    move-result v4

    if-nez v4, :cond_0

    invoke-direct {p0, v3}, Lcn/cheln/support/v4/view/PagerView;->a(Landroid/view/View;)Lcn/cheln/support/v4/view/j;

    move-result-object v4

    if-eqz v4, :cond_0

    iget v4, v4, Lcn/cheln/support/v4/view/j;->b:I

    iget v5, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    if-ne v4, v5, :cond_0

    invoke-virtual {v3, p1, p2, p3}, Landroid/view/View;->addFocusables(Ljava/util/ArrayList;II)V

    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_1
    const/high16 v2, 0x4

    if-ne v1, v2, :cond_2

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ne v0, v1, :cond_3

    :cond_2
    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->isFocusable()Z

    move-result v0

    if-nez v0, :cond_4

    :cond_3
    :goto_1
    return-void

    :cond_4
    and-int/lit8 v0, p3, 0x1

    const/4 v1, 0x1

    if-ne v0, v1, :cond_5

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->isInTouchMode()Z

    move-result v0

    if-eqz v0, :cond_5

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->isFocusableInTouchMode()Z

    move-result v0

    if-eqz v0, :cond_3

    :cond_5
    if-eqz p1, :cond_3

    invoke-virtual {p1, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1
.end method

.method public addTouchables(Ljava/util/ArrayList;)V
    .locals 4

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getChildCount()I

    move-result v1

    if-ge v0, v1, :cond_1

    invoke-virtual {p0, v0}, Lcn/cheln/support/v4/view/PagerView;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

    move-result v2

    if-nez v2, :cond_0

    invoke-direct {p0, v1}, Lcn/cheln/support/v4/view/PagerView;->a(Landroid/view/View;)Lcn/cheln/support/v4/view/j;

    move-result-object v2

    if-eqz v2, :cond_0

    iget v2, v2, Lcn/cheln/support/v4/view/j;->b:I

    iget v3, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    if-ne v2, v3, :cond_0

    invoke-virtual {v1, p1}, Landroid/view/View;->addTouchables(Ljava/util/ArrayList;)V

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method public addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
    .locals 2

    iget-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->m:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0, p1, p2, p3}, Lcn/cheln/support/v4/view/PagerView;->addViewInLayout(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)Z

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->k:I

    iget v1, p0, Lcn/cheln/support/v4/view/PagerView;->l:I

    invoke-virtual {p1, v0, v1}, Landroid/view/View;->measure(II)V

    :goto_0
    return-void

    :cond_0
    invoke-super {p0, p1, p2, p3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0
.end method

.method public computeScroll()V
    .locals 4

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->isFinished()Z

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->computeScrollOffset()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollX()I

    move-result v0

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollY()I

    move-result v1

    iget-object v2, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-virtual {v2}, Landroid/widget/Scroller;->getCurrX()I

    move-result v2

    iget-object v3, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-virtual {v3}, Landroid/widget/Scroller;->getCurrY()I

    move-result v3

    if-ne v0, v2, :cond_0

    if-eq v1, v3, :cond_1

    :cond_0
    invoke-virtual {p0, v2, v3}, Lcn/cheln/support/v4/view/PagerView;->scrollTo(II)V

    :cond_1
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->E:Lcn/cheln/support/v4/view/k;

    if-eqz v0, :cond_2

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getWidth()I

    move-result v0

    div-int v1, v2, v0

    rem-int v0, v2, v0

    iget-object v2, p0, Lcn/cheln/support/v4/view/PagerView;->E:Lcn/cheln/support/v4/view/k;

    invoke-interface {v2, v1, v0}, Lcn/cheln/support/v4/view/k;->a(II)V

    :cond_2
    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->invalidate()V

    :goto_0
    return-void

    :cond_3
    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->d()V

    goto :goto_0
.end method

.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 3

    const/4 v2, 0x1

    const/4 v1, 0x0

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :cond_0
    move v0, v1

    :goto_0
    if-eqz v0, :cond_3

    :cond_1
    move v0, v2

    :goto_1
    return v0

    :sswitch_0
    const/16 v0, 0x11

    invoke-direct {p0, v0}, Lcn/cheln/support/v4/view/PagerView;->d(I)Z

    move-result v0

    goto :goto_0

    :sswitch_1
    const/16 v0, 0x42

    invoke-direct {p0, v0}, Lcn/cheln/support/v4/view/PagerView;->d(I)Z

    move-result v0

    goto :goto_0

    :sswitch_2
    invoke-static {p1}, Lcn/cheln/support/v4/view/a;->b(Landroid/view/KeyEvent;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x2

    invoke-direct {p0, v0}, Lcn/cheln/support/v4/view/PagerView;->d(I)Z

    move-result v0

    goto :goto_0

    :cond_2
    invoke-static {p1}, Lcn/cheln/support/v4/view/a;->a(Landroid/view/KeyEvent;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-direct {p0, v2}, Lcn/cheln/support/v4/view/PagerView;->d(I)Z

    move-result v0

    goto :goto_0

    :cond_3
    move v0, v1

    goto :goto_1

    nop

    :sswitch_data_0
    .sparse-switch
        0x15 -> :sswitch_0
        0x16 -> :sswitch_1
        0x3d -> :sswitch_2
    .end sparse-switch
.end method

.method public dispatchPopulateAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)Z
    .locals 6

    const/4 v5, 0x0

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getChildCount()I

    move-result v0

    move v1, v5

    :goto_0
    if-ge v1, v0, :cond_1

    invoke-virtual {p0, v1}, Lcn/cheln/support/v4/view/PagerView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getVisibility()I

    move-result v3

    if-nez v3, :cond_0

    invoke-direct {p0, v2}, Lcn/cheln/support/v4/view/PagerView;->a(Landroid/view/View;)Lcn/cheln/support/v4/view/j;

    move-result-object v3

    if-eqz v3, :cond_0

    iget v3, v3, Lcn/cheln/support/v4/view/j;->b:I

    iget v4, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    if-ne v3, v4, :cond_0

    invoke-virtual {v2, p1}, Landroid/view/View;->dispatchPopulateAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)Z

    move-result v2

    if-eqz v2, :cond_0

    const/4 v0, 0x1

    :goto_1
    return v0

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    move v0, v5

    goto :goto_1
.end method

.method public draw(Landroid/graphics/Canvas;)V
    .locals 1

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->draw(Landroid/graphics/Canvas;)V

    invoke-static {}, Lcn/cheln/support/v4/view/q;->b()I

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->B:Lcn/cheln/support/v4/a/a;

    invoke-static {}, Lcn/cheln/support/v4/a/a;->a()V

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->C:Lcn/cheln/support/v4/a/a;

    invoke-static {}, Lcn/cheln/support/v4/a/a;->a()V

    return-void
.end method

.method protected drawableStateChanged()V
    .locals 0

    invoke-super {p0}, Landroid/view/ViewGroup;->drawableStateChanged()V

    return-void
.end method

.method protected onAttachedToWindow()V
    .locals 1

    invoke-super {p0}, Landroid/view/ViewGroup;->onAttachedToWindow()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->D:Z

    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 0

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onDraw(Landroid/graphics/Canvas;)V

    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 11

    const/4 v3, -0x1

    const/4 v4, 0x0

    const/4 v10, 0x1

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    and-int/lit16 v0, v0, 0xff

    const/4 v1, 0x3

    if-eq v0, v1, :cond_0

    if-ne v0, v10, :cond_1

    :cond_0
    iput-boolean v2, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    iput-boolean v2, p0, Lcn/cheln/support/v4/view/PagerView;->s:Z

    iput v3, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    move v0, v2

    :goto_0
    return v0

    :cond_1
    if-eqz v0, :cond_3

    iget-boolean v1, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    if-eqz v1, :cond_2

    move v0, v10

    goto :goto_0

    :cond_2
    iget-boolean v1, p0, Lcn/cheln/support/v4/view/PagerView;->s:Z

    if-eqz v1, :cond_3

    move v0, v2

    goto :goto_0

    :cond_3
    sparse-switch v0, :sswitch_data_0

    :cond_4
    :goto_1
    iget-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    goto :goto_0

    :sswitch_0
    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    if-eq v0, v3, :cond_4

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->a(Landroid/view/MotionEvent;I)I

    move-result v0

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->c(Landroid/view/MotionEvent;I)F

    move-result v6

    iget v1, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    sub-float v1, v6, v1

    invoke-static {v1}, Ljava/lang/Math;->abs(F)F

    move-result v7

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->d(Landroid/view/MotionEvent;I)F

    move-result v8

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->v:F

    sub-float v0, v8, v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v9

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollX()I

    move-result v0

    cmpl-float v3, v1, v4

    if-lez v3, :cond_5

    if-eqz v0, :cond_6

    :cond_5
    cmpg-float v0, v1, v4

    if-gez v0, :cond_6

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {v0}, Lcn/cheln/support/v4/view/g;->a()I

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getWidth()I

    :cond_6
    float-to-int v3, v1

    float-to-int v4, v6

    float-to-int v5, v8

    move-object v0, p0

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcn/cheln/support/v4/view/PagerView;->a(Landroid/view/View;ZIII)Z

    move-result v0

    if-eqz v0, :cond_7

    iput v6, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    iput v8, p0, Lcn/cheln/support/v4/view/PagerView;->v:F

    move v0, v2

    goto :goto_0

    :cond_7
    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->t:I

    int-to-float v0, v0

    cmpl-float v0, v7, v0

    if-lez v0, :cond_8

    cmpl-float v0, v7, v9

    if-lez v0, :cond_8

    iput-boolean v10, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    invoke-direct {p0, v10}, Lcn/cheln/support/v4/view/PagerView;->b(I)V

    iput v6, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    invoke-direct {p0, v10}, Lcn/cheln/support/v4/view/PagerView;->a(Z)V

    goto :goto_1

    :cond_8
    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->t:I

    int-to-float v0, v0

    cmpg-float v0, v9, v0

    if-lez v0, :cond_4

    iput-boolean v10, p0, Lcn/cheln/support/v4/view/PagerView;->s:Z

    goto :goto_1

    :sswitch_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->v:F

    invoke-static {p1, v2}, Lcn/cheln/support/v4/view/c;->b(Landroid/view/MotionEvent;I)I

    move-result v0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->F:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_9

    iput-boolean v10, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    iput-boolean v2, p0, Lcn/cheln/support/v4/view/PagerView;->s:Z

    invoke-direct {p0, v10}, Lcn/cheln/support/v4/view/PagerView;->b(I)V

    goto/16 :goto_1

    :cond_9
    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->d()V

    iput-boolean v2, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    iput-boolean v2, p0, Lcn/cheln/support/v4/view/PagerView;->s:Z

    goto/16 :goto_1

    :sswitch_2
    invoke-direct {p0, p1}, Lcn/cheln/support/v4/view/PagerView;->a(Landroid/view/MotionEvent;)V

    goto/16 :goto_1

    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_1
        0x2 -> :sswitch_0
        0x6 -> :sswitch_2
    .end sparse-switch
.end method

.method protected onLayout(ZIIII)V
    .locals 9

    const/4 v8, 0x0

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->m:Z

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->c()V

    iput-boolean v8, p0, Lcn/cheln/support/v4/view/PagerView;->m:Z

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getChildCount()I

    move-result v0

    sub-int v1, p4, p2

    move v2, v8

    :goto_0
    if-ge v2, v0, :cond_1

    invoke-virtual {p0, v2}, Lcn/cheln/support/v4/view/PagerView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getVisibility()I

    move-result v4

    const/16 v5, 0x8

    if-eq v4, v5, :cond_0

    invoke-direct {p0, v3}, Lcn/cheln/support/v4/view/PagerView;->a(Landroid/view/View;)Lcn/cheln/support/v4/view/j;

    move-result-object v4

    if-eqz v4, :cond_0

    iget v4, v4, Lcn/cheln/support/v4/view/j;->b:I

    mul-int/2addr v4, v1

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getPaddingLeft()I

    move-result v5

    add-int/2addr v4, v5

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getPaddingTop()I

    move-result v5

    invoke-virtual {v3}, Landroid/view/View;->getMeasuredWidth()I

    move-result v6

    add-int/2addr v6, v4

    invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I

    move-result v7

    add-int/2addr v7, v5

    invoke-virtual {v3, v4, v5, v6, v7}, Landroid/view/View;->layout(IIII)V

    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_1
    iput-boolean v8, p0, Lcn/cheln/support/v4/view/PagerView;->D:Z

    return-void
.end method

.method protected onMeasure(II)V
    .locals 5

    const/high16 v3, 0x4000

    const/4 v2, 0x0

    invoke-static {v2, p1}, Lcn/cheln/support/v4/view/PagerView;->getDefaultSize(II)I

    move-result v0

    invoke-static {v2, p2}, Lcn/cheln/support/v4/view/PagerView;->getDefaultSize(II)I

    move-result v1

    invoke-virtual {p0, v0, v1}, Lcn/cheln/support/v4/view/PagerView;->setMeasuredDimension(II)V

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getMeasuredWidth()I

    move-result v0

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getPaddingLeft()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getPaddingRight()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-static {v0, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->k:I

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getMeasuredHeight()I

    move-result v0

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getPaddingTop()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getPaddingBottom()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-static {v0, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->l:I

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->m:Z

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->c()V

    iput-boolean v2, p0, Lcn/cheln/support/v4/view/PagerView;->m:Z

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getChildCount()I

    move-result v0

    move v1, v2

    :goto_0
    if-ge v1, v0, :cond_1

    invoke-virtual {p0, v1}, Lcn/cheln/support/v4/view/PagerView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getVisibility()I

    move-result v3

    const/16 v4, 0x8

    if-eq v3, v4, :cond_0

    iget v3, p0, Lcn/cheln/support/v4/view/PagerView;->k:I

    iget v4, p0, Lcn/cheln/support/v4/view/PagerView;->l:I

    invoke-virtual {v2, v3, v4}, Landroid/view/View;->measure(II)V

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method protected onRequestFocusInDescendants(ILandroid/graphics/Rect;)Z
    .locals 8

    const/4 v7, 0x0

    const/4 v2, -0x1

    const/4 v6, 0x1

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getChildCount()I

    move-result v0

    and-int/lit8 v1, p1, 0x2

    if-eqz v1, :cond_0

    move v1, v7

    move v2, v0

    move v0, v6

    :goto_0
    if-eq v1, v2, :cond_2

    invoke-virtual {p0, v1}, Lcn/cheln/support/v4/view/PagerView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getVisibility()I

    move-result v4

    if-nez v4, :cond_1

    invoke-direct {p0, v3}, Lcn/cheln/support/v4/view/PagerView;->a(Landroid/view/View;)Lcn/cheln/support/v4/view/j;

    move-result-object v4

    if-eqz v4, :cond_1

    iget v4, v4, Lcn/cheln/support/v4/view/j;->b:I

    iget v5, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    if-ne v4, v5, :cond_1

    invoke-virtual {v3, p1, p2}, Landroid/view/View;->requestFocus(ILandroid/graphics/Rect;)Z

    move-result v3

    if-eqz v3, :cond_1

    move v0, v6

    :goto_1
    return v0

    :cond_0
    sub-int/2addr v0, v6

    move v1, v0

    move v0, v2

    goto :goto_0

    :cond_1
    add-int/2addr v1, v0

    goto :goto_0

    :cond_2
    move v0, v7

    goto :goto_1
.end method

.method public onRestoreInstanceState(Landroid/os/Parcelable;)V
    .locals 3

    instance-of v0, p1, Lcn/cheln/support/v4/view/PagerView$SavedState;

    if-nez v0, :cond_0

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V

    :goto_0
    return-void

    :cond_0
    check-cast p1, Lcn/cheln/support/v4/view/PagerView$SavedState;

    invoke-virtual {p1}, Lcn/cheln/support/v4/view/PagerView$SavedState;->getSuperState()Landroid/os/Parcelable;

    move-result-object v0

    invoke-super {p0, v0}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    iget-object v0, p1, Lcn/cheln/support/v4/view/PagerView$SavedState;->b:Landroid/os/Parcelable;

    iget-object v0, p1, Lcn/cheln/support/v4/view/PagerView$SavedState;->c:Ljava/lang/ClassLoader;

    iget v0, p1, Lcn/cheln/support/v4/view/PagerView$SavedState;->a:I

    const/4 v1, 0x0

    const/4 v2, 0x1

    invoke-direct {p0, v0, v1, v2}, Lcn/cheln/support/v4/view/PagerView;->a(IZZ)V

    goto :goto_0

    :cond_1
    iget v0, p1, Lcn/cheln/support/v4/view/PagerView$SavedState;->a:I

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->f:I

    iget-object v0, p1, Lcn/cheln/support/v4/view/PagerView$SavedState;->b:Landroid/os/Parcelable;

    iput-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->g:Landroid/os/Parcelable;

    iget-object v0, p1, Lcn/cheln/support/v4/view/PagerView$SavedState;->c:Ljava/lang/ClassLoader;

    iput-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->h:Ljava/lang/ClassLoader;

    goto :goto_0
.end method

.method public onSaveInstanceState()Landroid/os/Parcelable;
    .locals 2

    invoke-super {p0}, Landroid/view/ViewGroup;->onSaveInstanceState()Landroid/os/Parcelable;

    move-result-object v0

    new-instance v1, Lcn/cheln/support/v4/view/PagerView$SavedState;

    invoke-direct {v1, v0}, Lcn/cheln/support/v4/view/PagerView$SavedState;-><init>(Landroid/os/Parcelable;)V

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    iput v0, v1, Lcn/cheln/support/v4/view/PagerView$SavedState;->a:I

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    const/4 v0, 0x0

    iput-object v0, v1, Lcn/cheln/support/v4/view/PagerView$SavedState;->b:Landroid/os/Parcelable;

    :cond_0
    return-object v1
.end method

.method protected onSizeChanged(IIII)V
    .locals 6

    const/4 v2, 0x0

    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/ViewGroup;->onSizeChanged(IIII)V

    if-eq p1, p3, :cond_0

    if-lez p3, :cond_1

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollX()I

    move-result v0

    div-int v1, v0, p3

    rem-int/2addr v0, p3

    div-int/2addr v0, p3

    int-to-float v0, v0

    int-to-float v1, v1

    add-float/2addr v0, v1

    int-to-float v1, p1

    mul-float/2addr v0, v1

    float-to-int v1, v0

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollY()I

    move-result v0

    invoke-virtual {p0, v1, v0}, Lcn/cheln/support/v4/view/PagerView;->scrollTo(II)V

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->isFinished()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->getDuration()I

    move-result v0

    iget-object v3, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    invoke-virtual {v3}, Landroid/widget/Scroller;->timePassed()I

    move-result v3

    sub-int v5, v0, v3

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->i:Landroid/widget/Scroller;

    iget v3, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    mul-int/2addr v3, p1

    move v4, v2

    invoke-virtual/range {v0 .. v5}, Landroid/widget/Scroller;->startScroll(IIIII)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    mul-int/2addr v0, p1

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollX()I

    move-result v1

    if-eq v0, v1, :cond_0

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->d()V

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollY()I

    move-result v1

    invoke-virtual {p0, v0, v1}, Lcn/cheln/support/v4/view/PagerView;->scrollTo(II)V

    goto :goto_0
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 7

    const/4 v3, -0x1

    const/4 v4, 0x0

    const/4 v6, 0x1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getEdgeFlags()I

    move-result v0

    if-eqz v0, :cond_0

    move v0, v4

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {v0}, Lcn/cheln/support/v4/view/g;->a()I

    move-result v0

    if-nez v0, :cond_2

    :cond_1
    move v0, v4

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->x:Landroid/view/VelocityTracker;

    if-nez v0, :cond_3

    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v0

    iput-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->x:Landroid/view/VelocityTracker;

    :cond_3
    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->x:Landroid/view/VelocityTracker;

    invoke-virtual {v0, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    and-int/lit16 v0, v0, 0xff

    packed-switch v0, :pswitch_data_0

    :cond_4
    :goto_1
    :pswitch_0
    move v0, v6

    goto :goto_0

    :pswitch_1
    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->d()V

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    invoke-static {p1, v4}, Lcn/cheln/support/v4/view/c;->b(Landroid/view/MotionEvent;I)I

    move-result v0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    goto :goto_1

    :pswitch_2
    iget-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    if-nez v0, :cond_5

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->a(Landroid/view/MotionEvent;I)I

    move-result v0

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->c(Landroid/view/MotionEvent;I)F

    move-result v1

    iget v2, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    sub-float v2, v1, v2

    invoke-static {v2}, Ljava/lang/Math;->abs(F)F

    move-result v2

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->d(Landroid/view/MotionEvent;I)F

    move-result v0

    iget v3, p0, Lcn/cheln/support/v4/view/PagerView;->v:F

    sub-float/2addr v0, v3

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    iget v3, p0, Lcn/cheln/support/v4/view/PagerView;->t:I

    int-to-float v3, v3

    cmpl-float v3, v2, v3

    if-lez v3, :cond_5

    cmpl-float v0, v2, v0

    if-lez v0, :cond_5

    iput-boolean v6, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    iput v1, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    invoke-direct {p0, v6}, Lcn/cheln/support/v4/view/PagerView;->b(I)V

    invoke-direct {p0, v6}, Lcn/cheln/support/v4/view/PagerView;->a(Z)V

    :cond_5
    iget-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    if-eqz v0, :cond_4

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->a(Landroid/view/MotionEvent;I)I

    move-result v0

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->c(Landroid/view/MotionEvent;I)F

    move-result v0

    iget v1, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    sub-float/2addr v1, v0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollX()I

    move-result v0

    int-to-float v0, v0

    add-float/2addr v0, v1

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getWidth()I

    move-result v1

    iget-object v2, p0, Lcn/cheln/support/v4/view/PagerView;->d:Lcn/cheln/support/v4/view/g;

    invoke-virtual {v2}, Lcn/cheln/support/v4/view/g;->a()I

    move-result v2

    sub-int/2addr v2, v6

    iget v3, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    sub-int/2addr v3, v6

    mul-int/2addr v3, v1

    invoke-static {v4, v3}, Ljava/lang/Math;->max(II)I

    move-result v3

    int-to-float v3, v3

    iget v4, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    add-int/lit8 v4, v4, 0x1

    invoke-static {v4, v2}, Ljava/lang/Math;->min(II)I

    move-result v4

    mul-int/2addr v4, v1

    int-to-float v4, v4

    cmpg-float v5, v0, v3

    if-gez v5, :cond_8

    const/4 v0, 0x0

    cmpl-float v0, v3, v0

    if-nez v0, :cond_6

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->B:Lcn/cheln/support/v4/a/a;

    invoke-static {}, Lcn/cheln/support/v4/a/a;->b()Z

    :cond_6
    move v0, v3

    :cond_7
    :goto_2
    iget v2, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    float-to-int v3, v0

    int-to-float v3, v3

    sub-float v3, v0, v3

    add-float/2addr v2, v3

    iput v2, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    float-to-int v2, v0

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollY()I

    move-result v3

    invoke-virtual {p0, v2, v3}, Lcn/cheln/support/v4/view/PagerView;->scrollTo(II)V

    iget-object v2, p0, Lcn/cheln/support/v4/view/PagerView;->E:Lcn/cheln/support/v4/view/k;

    if-eqz v2, :cond_4

    float-to-int v2, v0

    div-int/2addr v2, v1

    float-to-int v0, v0

    rem-int/2addr v0, v1

    iget-object v1, p0, Lcn/cheln/support/v4/view/PagerView;->E:Lcn/cheln/support/v4/view/k;

    invoke-interface {v1, v2, v0}, Lcn/cheln/support/v4/view/k;->a(II)V

    goto/16 :goto_1

    :cond_8
    cmpl-float v3, v0, v4

    if-lez v3, :cond_7

    mul-int v0, v2, v1

    int-to-float v0, v0

    cmpl-float v0, v4, v0

    if-nez v0, :cond_9

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->C:Lcn/cheln/support/v4/a/a;

    invoke-static {}, Lcn/cheln/support/v4/a/a;->b()Z

    :cond_9
    move v0, v4

    goto :goto_2

    :pswitch_3
    iget-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->x:Landroid/view/VelocityTracker;

    const/16 v1, 0x3e8

    iget v2, p0, Lcn/cheln/support/v4/view/PagerView;->y:I

    int-to-float v2, v2

    invoke-virtual {v0, v1, v2}, Landroid/view/VelocityTracker;->computeCurrentVelocity(IF)V

    iget v1, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    invoke-static {v0, v1}, Lcn/cheln/support/v4/view/m;->a(Landroid/view/VelocityTracker;I)F

    move-result v0

    float-to-int v0, v0

    iput-boolean v6, p0, Lcn/cheln/support/v4/view/PagerView;->o:Z

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getWidth()I

    move-result v1

    invoke-virtual {p0}, Lcn/cheln/support/v4/view/PagerView;->getScrollX()I

    move-result v2

    int-to-float v2, v2

    int-to-float v1, v1

    div-float v1, v2, v1

    float-to-int v1, v1

    if-lez v0, :cond_a

    move v0, v1

    :goto_3
    invoke-direct {p0, v0, v6, v6}, Lcn/cheln/support/v4/view/PagerView;->a(IZZ)V

    iput v3, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->e()V

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->B:Lcn/cheln/support/v4/a/a;

    invoke-static {}, Lcn/cheln/support/v4/a/a;->c()Z

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->C:Lcn/cheln/support/v4/a/a;

    invoke-static {}, Lcn/cheln/support/v4/a/a;->c()Z

    goto/16 :goto_1

    :cond_a
    add-int/lit8 v0, v1, 0x1

    goto :goto_3

    :pswitch_4
    iget-boolean v0, p0, Lcn/cheln/support/v4/view/PagerView;->r:Z

    if-eqz v0, :cond_4

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->e:I

    invoke-direct {p0, v0, v6, v6}, Lcn/cheln/support/v4/view/PagerView;->a(IZZ)V

    iput v3, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    invoke-direct {p0}, Lcn/cheln/support/v4/view/PagerView;->e()V

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->B:Lcn/cheln/support/v4/a/a;

    invoke-static {}, Lcn/cheln/support/v4/a/a;->c()Z

    iget-object v0, p0, Lcn/cheln/support/v4/view/PagerView;->C:Lcn/cheln/support/v4/a/a;

    invoke-static {}, Lcn/cheln/support/v4/a/a;->c()Z

    goto/16 :goto_1

    :pswitch_5
    invoke-static {p1}, Lcn/cheln/support/v4/view/c;->a(Landroid/view/MotionEvent;)I

    move-result v0

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->c(Landroid/view/MotionEvent;I)F

    move-result v1

    iput v1, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->b(Landroid/view/MotionEvent;I)I

    move-result v0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    goto/16 :goto_1

    :pswitch_6
    invoke-direct {p0, p1}, Lcn/cheln/support/v4/view/PagerView;->a(Landroid/view/MotionEvent;)V

    iget v0, p0, Lcn/cheln/support/v4/view/PagerView;->w:I

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->a(Landroid/view/MotionEvent;I)I

    move-result v0

    invoke-static {p1, v0}, Lcn/cheln/support/v4/view/c;->c(Landroid/view/MotionEvent;I)F

    move-result v0

    iput v0, p0, Lcn/cheln/support/v4/view/PagerView;->u:F

    goto/16 :goto_1

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_3
        :pswitch_2
        :pswitch_4
        :pswitch_0
        :pswitch_5
        :pswitch_6
    .end packed-switch
.end method

.method protected verifyDrawable(Landroid/graphics/drawable/Drawable;)Z
    .locals 1

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->verifyDrawable(Landroid/graphics/drawable/Drawable;)Z

    move-result v0

    if-nez v0, :cond_0

    if-nez p1, :cond_1

    :cond_0
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method
